<!DOCTYPE html>
<html>
<head>
<title>MMS</title>
<meta charset="utf-8">
<style type="text/css">
html, body {
    margin: 0px;
    width: 100%;
    height: 100%;
}
body {
    background-color: black;
}
</style>
</head>
<body>
<script>
MMS = top.Tian.Class(top.Tian.Embeded, {
    onRun: function () {
        top.Tian.Embeded.prototype.onRun.apply(this, arguments);
        
        // create media
        if (this.theApp) {
            var html = "<embed src='" + this.theApp.camera + "' width='100%' height='98%' " + 
                       " autostart='1' showcontrols='0' type='application/x-mplayer2' " +
                       " pluginspage='http://www.microsoft.com/windows/windowsmedia/download/' ></embed>";
            document.body.innerHTML = html;
        }
    },

    CLASS_NAME: "MMS"
});

function tianMain(options) {
    return new MMS(options);
}
</script>
</body>
</html>
